//
//  AppMarco.h
//  lcf-newproject
//
//  Created by yangyang on 14-11-10.
//  Copyright (c) 2014年 yang. All rights reserved.
//
/*
 AppMacro.h 里放app相关的宏定义，如:
 // 表情相关
 #define EMOTION_CACHE_PATH @"cachedemotions"
 #define EMOTION_RECENT_USED @"recentusedemotions"
 #define EMOTION_CATEGORIES @"categoryemotions"
 #define EMOTION_TOPICS @"emotiontopics"
 
 // 收藏相关
 #define COLLECT_CACHE_PATH @"collected"
 
 // 配图相关
 #define WATERFALL_ITEM_HEIGHT_MAX 300
 #define WATERFALL_ITEM_WIDTH 146
 */
#import "AppDelegate.h"
#import "NotificationMarco.h"
#import "VendorMacro.h"
#import "UtilsMarco.h"
#import "NetWorkConfig.h"
#import "LCFUIGlobel.h"

#ifndef lcf_newproject_AppMarco_h
#define lcf_newproject_AppMarco_h

//当前系统版本号
#define CURRENT_VERSION [[NSBundle mainBundle] infoDictionary]objectForKey:@"CFBundleShortVersionString"]
#define CUREENT_SYSTEM_VERSION [[UIDevice currentDevice].systemVersion floatValue]
#define _ISIOS6 CUREENT_SYSTEM_VERSION < 7.0 ? YES : NO
#define _ISIOS7 (CUREENT_SYSTEM_VERSION < 8.0) && (!_ISIOS6) ? YES : NO
#define _ISIOS8 CUREENT_SYSTEM_VERSION >= 8.0 ? YES : NO

//设备的大小
#define __MainScreenFrame [[UIScreen mainScreen]bounds]
//设备宽高
#define __MainScreen_Width __MainScreenFrame.size.width
#define __MainScreen_Height __MainScreenFrame.size.height
#define __NavigationHeight 44

//底部标签栏大小
#define __StatusBarHeight        _ISIOS6 ? 0 : 20
#define __TabBar_Width(count) __MainScreen_Width/count
#define __TabBar_Height 49

//数据状态
#define DataStatus @"status"


//提示信息
#define NetError @"网络不给力"
#define NetIsLoading @"正在加载中"
#define NetLoadingSuccess @"加载成功"
#define NetLoadingFailed @"加载失败"
#define NetTimeInterval 1.0

#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]

#endif
